package net.ericaro.neojavagen.expressions ;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;

import net.ericaro.neojavagen.expressions.EqualityExpression ;

import net.ericaro.neojavagen.StringUtils;
		
/**
* <pre> AndExpression :  EqualityExpression & EqualityExpression & ...  
*/
public class AndExpression extends ArrayList<EqualityExpression>  {
	
	public AndExpression(){
		super();
	}
	
	public AndExpression(EqualityExpression ... components){
		this(Arrays.asList(components) );
	}
	public AndExpression(Collection<EqualityExpression> values ){
		super(values);
	}
	
	
	public String toString(){
		return StringUtils.toString(this, "&", "", "");
	}

}
